package com.kenny.service;

import com.kenny.spring.Autowired;
import com.kenny.spring.Component;

@Component("userService")
//@Scope("prototype")
public class UserService {

    @Autowired
    private OrderService orderService;

    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public void test(){
        System.out.println("test");
        orderService.say();
    }

}
